home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Games Collection 1 / software vault.zip / software vault / CDR10 / ACK3D.ZIP / TRIG / TRIG.DOC < prev    next >
Text File  |  1993-08-24  |  2KB  |  44 lines

  1. 8/24/93 10:18 PM
  2.  
  3. In this archive you'll find a copy of TRIG.EXE and the Borland C++ v3.1
  4. source to create the program.  TRIG.EXE was written to regenerate the
  5. TRIG.DAT file used by the ACK-3D engine.  You can find a demo of ACK-3D
  6. in this directory in the file: ACKDEM.ZIP.
  7.  
  8. The following is an excerpt from an e-mail message I sent to Lary Myers.
  9. It explains how to run the program, and how it differs from the original
  10. program used to generate the TRIG.DAT file:
  11.  
  12. --------------------
  13.  
  14. I'm uploading the program TRIG.EXE (with source) which I wrote to generate 
  15. new TRIG.DAT files.  It can also reverse-engineer an existing TRIG.DAT into 
  16. a human-readable format so you can use it to compare your original TRIG.DAT 
  17. file to the files created by TRIG.EXE.  By altering the way the loop 
  18. operates, I seem to have gotten rid of most of the rounding errors in the 
  19. tables.  I've run ACK3D.EXE with all forms of the new tables, but it 
  20. doesn't seem to have sped up the program or fixed any problems 
  21. (WallDistance and yDistance still go negative in ACKENG.C).  (Alas, I had 
  22. such high hopes...)
  23.  
  24. Anyhow, if you run TRIG.EXE with the -? option it will print a help screen 
  25. showing how to use it.  To reverse-engineer TRIG.DAT into a readable 
  26. format, execute:
  27.     TRIG -r trig.dat >trig.txt
  28. To build all new TRIG.DAT files, execute:
  29.     TRIG -bu trig.up
  30.     TRIG -bd trig.dn
  31.     TRIG -bi trig.in
  32.     TRIG -bo trig.out
  33. TRIG.UP has all values rounded up towards higher values, TRIG.DN has all 
  34. values rounded down, TRIG.IN rounds all numbers in towards 0, and TRIG.OUT 
  35. rounds all numbers out away from 0.  To use one of the new table files, 
  36. just copy it to TRIG.DAT.  For example:
  37.     copy trig.dat trig.old
  38.     copy trig.out trig.dat
  39. Then run ACK3D with the new tables in place.
  40.  
  41. --------------------
  42.  
  43. John Gaines, Jr.
  44.